
import url from '@/const/apiURL'

export function formData () {
    return {
        positionChange: {
            columns: [
                { label: '用户姓名', prop: 'userName', type: 'text', disabled: true },
                { label: '职位', prop: 'positionCode', type: 'select', dataUrl: url.DATA_USABLE_LIST_URL, itemName: 'positionName', itemValue: 'positionCode' }
            ],
            dataRule: {
                positionCode: [{ required: true, message: '职位不能为空', trigger: 'blur' }]
            }
        },
        priceChange: {
            columns: [
                { label: '加工单价', prop: 'price', type: 'text', inputType: 'number' }
            ],
            dataRule: {
                price: [{ required: true, message: '单价为空', trigger: 'blur' }]
            }
        }
    }
}